package com.province.platform.core.utils;

import com.province.platform.common.utils.Configuration;
import org.apache.commons.lang3.Validate;

import java.util.Objects;

public class ConfigurationValidate {

    public static void doValidate(Configuration configuration) {
        Validate.isTrue(Objects.isNull(configuration), "");

        coreValidate(configuration);

        pluginValidate(configuration);

        jobValidate(configuration);
    }

    private static void jobValidate(Configuration configuration) {
        return;
    }

    private static void pluginValidate(Configuration configuration) {
        return;
    }

    private static void coreValidate(Configuration configuration) {
        return;
    }
}
